x86/mem_event: fix regression affecting CR0 memory events
authorTamas K Lengyel <tamas.lengyel@zentific.com>
Wed, 23 Jul 2014 16:05:11 +0000 (18:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Jul 2014 16:05:11 +0000 (18:05 +0200)
commit5d570c1d0274cac3b333ef378af3325b3b69905e
treef8d9b7d30e93e56c0f6050f18dc6bad4800f03f9
parent9d2efbafb895d1a3b5d70823b59faf71701ff1f9
x86/mem_event: fix regression affecting CR0 memory events

This is a patch repairing a regression in code previously functional in 4.1.x.
It appears that, during some refactoring work, call to hvm_memory_event_cr0 was lost.

This function was originally called in mov_to_cr() of vmx.c, but the commit
http://xenbits.xen.org/hg/xen-unstable.hg/rev/1276926e3795 abstracted the
original code into generic functions up a level in hvm.c, dropping the call
in the process.

The same issue affected the CR3 and CR4 events, which were fixed in patch
http://xenbits.xensource.com/hg/xen-unstable.hg/rev/7ab899e46347.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c